package command.light;import command.Command;import command.light.Light;/** * Created by Administrator on 2018-10-24. */public class LightOnCommand implements Command {    Light light;    public LightOnCommand(Light light){        this.light =light;    }    public void execute() {        light.on();    }    public void Undo() {        light.off();    }}